package sng.modules.view
{
	import mx.collections.ArrayCollection;
	
	import org.puremvc.as3.interfaces.IMediator;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	
	import sng.modules.model.SocialProxy;
	import sng.modules.system.SocialSystem;
	
	import spark.components.List;
	import spark.events.IndexChangeEvent;
	
	public class SocialMediator extends Mediator implements IMediator
	{
		
		private var main:Main;
		private var socialProxy:SocialProxy;
		
		public function SocialMediator(app:Object)
		{
			super(SocialSystem.SocialMediatorName, app);
			
			socialProxy = SocialProxy(facade.retrieveProxy(SocialSystem.SocialProxyName));
			main=app as Main;
			
			main.socialMain.visible = true;
			
		}
		
		/**
		 * 
		 * @监听列表
		 * 
		 */
//		override public function listNotificationInterests():Array 
//		{
//			
//			return [ 
//				SocialSystem.SocialFriendsDataComplete
//			];
//		}
		
		/**
		 * 
		 * @对监听结果进行处理
		 * 
		 */
//		override public function handleNotification( note:INotification ):void 
//		{
//			switch (note.getName())
//			{
//				case SocialSystem.SocialFriendsDataComplete:
//					var fList:ArrayCollection = note.getBody() as ArrayCollection;
//					break;
//				
//			}
//		}
	}
}